package com.ruoyi.web.domain.warning;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 预警通知配置
 * @author fwx
 * @since 2024-01-31 14:08:37
 */
@Data
@TableName("tt_warning_notice")
@ApiModel(value = "WarningNotice对象", description = "预警通知配置")
public class WarningNotice implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("预警类型 1 灾害类 2 虫害类")
    @TableField("warning_type")
    private String warningType;

    @ApiModelProperty("预警等级")
    @TableField("warning_level")
    private String warningLevel;

    @ApiModelProperty("通知标题")
    @TableField("warning_title")
    private String warningTitle;

    @ApiModelProperty("是否发送短信 0 发送 1 不发送")
    @TableField("is_sms")
    private Integer isSms;

    @ApiModelProperty("是否发送邮件 0 发送 1 不发送")
    @TableField("is_email")
    private Integer isEmail;

    @ApiModelProperty("多个用户用,分开 全部传all")
    @TableField("book_id")
    private String bookId;

    @ApiModelProperty("创建人")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("用户名")
    @TableField("username")
    private String username;

    @ApiModelProperty("是否启用 0 启用 1 不启用")
    @TableField("is_enable")
    private Integer isEnable;

    @ApiModelProperty("创建时间")
    @TableField("crt_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime crtTime;

}
